<!--{if $_G['uid']}-->
    <span class="label"><span><a href="home.php?mod=spacecp" title="{lang update_profile_setup}"><!--{if $_G[member][realname]}-->$_G[member][realname]<!--{else}--><!--{$_G['username']}--><!--{/if}--></a></span></span>
    <a href="home.php?mod=spacecp&ac=friend&op=request&ts=friend" id="addmor" onclick="return loadmessage(this.id);" initialized="true" title="{lang add_friends_request}"></a>
    <a href="home.php?mod=space&do=pm" id="woomail" onclick="return loadmessage(this.id);" initialized="true" title="{lang new_pm}"></a>
    <a href="home.php?mod=space&do=notice" id="massage" onclick="return loadmessage(this.id);" initialized="true" title="{lang new_notice}"></a>
    <a href="shop.php?mod=ajax&ac=loadcart&inajax=1" id="showcart" onclick="return loadmessage(this.id);" initialized="true"><!--{if $totalitemts > 0}<span class="num-z">{$totalitemts}</span>{/if}--></a>
    <span class="verticalSeparator"></span>
    <!--{if $_G['uid']}-->
    	<!--{if $_G['adminid'] == 1}-->
        <a href="shop.php?mod=store&amp;ac=estore" title=""><!--{lang cac_gian_hang}--></a>
    	<!--{elseif check_profile_shop($_G['uid'])}-->
    	<a href="shop.php?mod=store&amp;ac=mylist" title=""><!--{lang quan_ly_gian_hang}--></a>
        <!--{else}-->
        <a href="shop.php?mod=store&amp;ac=register"><!--{lang mo_gian_hang}--></a>
        <!--{/if}-->
        <span class="verticalSeparator"></span>
    <!--{/if}-->
    <!--{if $_G['uid'] && getstatus($_G['member']['allowadmincp'], 1)}-->
        <a href="admin.php" title="{lang admincp}" target="_blank"><!--{lang admincp}--></a>
        <span class="verticalSeparator"></span>
    <!--{/if}-->
    <!--{if ($_G['group']['allowmanagearticle'] || $_G['group']['allowpostarticle'] || $_G['group']['allowdiy'] || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 6) || getstatus($_G['member']['allowadmincp'], 2) || getstatus($_G['member']['allowadmincp'], 3))}-->
        <a href="portal.php?mod=portalcp" title="{lang portal_manage}"><!--{if $_G['setting']['portalstatus']}{lang portal_manage}{else}{lang portal_block_manage}{/if}--></a>
        <span class="verticalSeparator"></span>
    <!--{/if}-->
    <!--{if $_G['uid'] && $_G['group']['radminid'] > 1}-->
        <a href="forum.php?mod=modcp&fid=$_G['fid']" title="{lang forum_manager}"><!--{lang forum_manager}--></a>
        <span class="verticalSeparator"></span>
    <!--{/if}-->
    <a href="member.php?mod=logging&action=logout&formhash={FORMHASH}" id="logout" title="{lang logout}"></a>
<!--{else}-->
    <span class="label"><span><!--{lang free_100}--></span></span>
    <a href="member.php?mod=register"><!--{lang register}--></a>
    <span class="verticalSeparator"></span>
    <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href)"><!--{lang login}--></a>
<!--{/if}-->